﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BUS;
using DTO;
namespace CungMuaC5.Account_Member
{
    public partial class ThongTinTaiKhoan : System.Web.UI.Page
    {
        BUS_TaiKhoan taikhoan = new BUS_TaiKhoan();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session.GetCurrentUser() == null)
                Response.Redirect("~/Default.aspx");
            else
            {
                AccInfo.DataSource = taikhoan.ThongTinTaiKhoan(Session.GetCurrentUser().MaTK.ToString());
                AccInfo.DataBind();
                Label lbl = (Label)AccInfo.FooterRow.FindControl("lblGioiTinh");
                if (lbl.Text == "True")
                    lbl.Text = "Nữ";
                else
                    lbl.Text = "Nam";
            }
        }
    }
}